#include <QtGui/QApplication>
//#include <QApplication>
#include "mainwindow_impl.h"
#include <sqlitedb.h>
#include <QTextCodec>
using namespace Ui;
int main(int argc, char *argv[]) {

    QApplication app(argc, argv);
//#ifdef Q_WS_WIN
//    QTextCodec *codec = QTextCodec::codecForName("cp1251");
//#else
    QTextCodec *codec = QTextCodec::codecForName("UTF-8");
//#endif

    QTextCodec::setCodecForTr(codec);
    QTextCodec::setCodecForCStrings(codec);
    QTextCodec::setCodecForLocale(codec);

    Mainwindow * window = new Mainwindow;
    window->show();
    return app.exec();
}
